home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Re Finding locations of other < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Finding locations of other Frames
  2. Sent:        4/19/96 3:50 PM
  3. Received:    4/19/96 4:01 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >But sometimes you do care, for example, I have a part that has multiple
  9. >presentations. Presentation 1 is always showing. But perhaps while
  10. >presentation 1 is showing they want to look at presentation 2, it is very
  11. >helpful, nay essential, that both presentations are observed at the same
  12. >time.
  13. >
  14. >User interface wise what am I to do? Force the user open a new facet and
  15. >place it manually? Or open a new facet with presenation 2 right next to the
  16. >facet with presentation 1?
  17. >
  18. >Once again, I may be missing the point here entirely, and if there is a
  19. >better way to do this I am all ears. I don't want to stuff all the
  20. >presentations into the same facet becuase you may want to compare multiple
  21. >instances of similar objects looking at one or two of the presentations,
  22. >either together or apart.
  23. >
  24. >When is the external transform available to me.
  25. >
  26. >To find some stuff out I tried this little snippet in FacetAdded of my
  27. >object that overiddes FW_CFrame for my part. And it does not change the
  28. >Rect like I would think it should.
  29. >
  30. > FW_CAcquiredODShape     boxShape = odFacet->AcquireActiveShape(ev, kODNULL
  31. >);
  32. > FW_CRect                movieFacetRect = FW_GetShapeBoundingBox(ev,
  33. >boxShape);
  34. > FW_CAcquiredODTransform windowTransform = odFacet->
  35. >                                           AcquireExternalTransform(ev,
  36. >kODNULL);
  37. >
  38. > movieFacetRect.Transform( ev, windowTransform );
  39. >
  40. >
  41. >Anyway, thanks a lot Henri for all your help with this.
  42. >
  43. >Jer,
  44.  
  45. This external transform goes from frame coordinate to the embedding frame 
  46. content coordinate. To go to window coordinate you need to use 
  47. AcquireWindowFrameTransform.
  48.  
  49. There is no way in OpenDoc to force your frame to be in a specific 
  50. position inside the container. Your embedding part can do what ever it 
  51. want.
  52.  
  53. .......................................................................
  54.  Henri Lamiraux                                      lamiraux@apple.com
  55.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  56. .......................................................................
  57.  
  58.  
  59.